/**
 * @author YinHang
 */
;(function () {
	var g2d = Gamepackage.get("Gamepackage.ui.g2d");
	g2d.Displayable = function (visible, x, y, width, height) {
		this.setVisible(visible ? visible : true);
		this.setX(x || 0);
		this.setY(y || 0);
		this.setWidth(width || 0);
		this.setHeight(height || 0);
	};
	
	var Prototype = g2d.Displayable.prototype;
	
	Prototype.setVisible = function (visible) {
		this.visible = visible;
	};
	
	Prototype.getVisible = function () {
		return this.visible;
	};
	
	Prototype.draw = function (graphics) {
		
	};
	
	Prototype.collisionWithRect= function (x, y, width, height) {
		return Gamepackage.ui.g2d.physics.Physics.RectCollision(this.getX(), this.getY(), this.getWidth(), this.getHeight(), x, y, width, height);
	};
	
	Prototype.getX = function () {
		return this.x;
	};
	
	Prototype.getY = function () {
		return this.y;
	};
	
	Prototype.setX = function (x) {
		this.x = x;
	};
	
	Prototype.setY = function (y) {
		this.y = y;
	};
	
	Prototype.getWidth = function () {
		return this.width;
	};
	
	Prototype.getHeight = function () {
		return this.height;
	};
	
	Prototype.setWidth = function (width) {
		this.width = width;
	};
	
	Prototype.setHeight = function (height) {
		this.height = height;
	};
})();
